package com.aptemo.webetek.server.handlers;

import com.aptemo.webetek.client.commands.Action;
import com.aptemo.webetek.client.commands.impl.DeleteStakeAction;
import com.aptemo.webetek.client.commands.responses.ResponseStatus;
import com.aptemo.webetek.client.exceptions.BackendException;
import com.aptemo.webetek.server.datastore.DataStoreAPI;

public class DeleteStakeHandler
		extends ActionHandler<DeleteStakeAction, ResponseStatus>
{

	public DeleteStakeHandler(DataStoreAPI service)
	{
		super(service);
	}

	public String execute(DeleteStakeAction action) throws Exception
	{
		//  
		return null;
	}

	public Class<? extends Action<?>> getActionType()
	{
		return DeleteStakeAction.class;
	}

	@Override
	public ResponseStatus invoke(DeleteStakeAction action) throws BackendException
	{
		// return mparent.deleteStake(action.getId());
		return null;
	}

}
